package com.outsider.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.outsider.dao.MusicMapper;
import com.outsider.entity.Music;
import com.outsider.service.OutsiderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * Created by outsider on 2017/5/14.
 */
@Service("outsiderService")
public class OutsiderServiceImpl implements OutsiderService {
    @Autowired
    private MusicMapper musicMapper;
    public String tell(){
        Music music=musicMapper.selectByPrimaryKey(64);
        System.out.println(JSONObject.toJSONString(music));
        return JSONObject.toJSONString(music);
    }
}
